﻿using BussinesLayer.Services;
using Microsoft.AspNet.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Mvc4.Hubs
{
    public class SiteAttributesHub : Hub
    {
        private SiteServices ss = new SiteServices();

        public void AddSiteAttribute(int siteId, string name)
        {
            int saId = ss.AddAttribute(siteId, name);

            Clients.Caller.ConfirmAddSiteAttribute(saId);
        }

        public void EditSiteAttribute(int saId, string name)
        {
            ss.ModifyAttribute(saId, name);
        }
    }
}